<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jstl/fmt.tld" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/jstl/spring-form.tld" prefix="form"%>
<%@ taglib uri="/WEB-INF/jstl/spring.tld" prefix="spring"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>会员信息修改界面</title>

<!--标题图标-->
<link rel="shortcut icon" type="image/x-icon"
	href="<%=basePath%>assets/x-img/logo-title.ico" media="screen" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/css/resetPro.css">
<link
	href="<%=basePath%>assets/bootstrap/css/bootstrap-combined.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-2.0.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-ui.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.htmlClean.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/ckeditor.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/config.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/Font-Awesome-3.2.1/css/font-awesome.min.css">
<!--这个js有时候会冲突-->
<!--<script type="text/javascript" src="<%=basePath%>bootstrap/js/scripts.js"></script>-->
<link rel="stylesheet"
	href="<%=basePath%>assets/onedate/css/BeatPicker.min.css" />
<script src="<%=basePath%>assets/onedate/js/BeatPicker.min.js"
	type="text/javascript"></script>
<script src="<%=basePath%>assets/onedate/documents/js/prism.js"
	type="text/javascript"></script>

<style type="text/css">
.onediv {
	width: 300px;
	margin: 0px auto;
	margin-top: 22px;
}

strong {
	margin-right: 10px;
}

.borderStrong {
	border: 5px solid #dee5e5;
}

.xli {
	width: 150px;
	font-size: 105%;
	font-weight: 700;
}

.refinput {
	width: 165px;
	margin-left: 5px;
}

.xspan {
	width: 15% !important;
	text-align: center; /*文字水平居中对齐*/
	line-height: 30px;
	font-size: 1.1em;
	margin-left: 0px !important;
	display: inline-block !important;
}

#valMsg {
	position: absolute;
	line-height: 20px;
	left: 59%;
	margin-top: 2px;
	display: none;
}

.zerodiv {
	margin-top: 25px;
}

.onecenter {
	margin: 0px auto;
	width: 250px;
}
.twocenter>input{
	width: 220px;
}
</style>
</head>
<body style="min-height: 660px; cursor: auto;" class="edit">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<!--引入Top导航-->
				<%@include file="shared/pageTop.jsp"%>
			</div>
		</div>
		<div class="row-fluid zerodiv">
			<div class="span12">
				<!-- 显示提示信息 -->
				<%@include file="../admin/shared/info.jsp"%>
				<div class="row-fluid">

					<div class="span12">

						<div class="onediv">

							<div class="tabbable tabs-below" id="tabs-4826">
								<center>
									<ul class="nav nav-tabs">
										<li class="${empty pageFlag ?'active':''} xli"><a
											href="#panel-791281" data-toggle="tab"><span
												class="icon-user "></span>&nbsp;&nbsp;密码</a></li>
										<li class="${empty pageFlag ?'':'active'}  xli"><a
											href="#panel-845681" data-toggle="tab"><span
												class="icon-credit-card"></span>&nbsp;&nbsp;基本</a></li>
									</ul>
								</center>
								<div class="tab-content">
									<div class="tab-pane ${empty pageFlag ?'':'active'} "
										id="panel-845681">
										
										<form class="form-signin"
											action="<%=basePath%>member/edit/${member.id }" method="post">
											<p class="onecenter">
											<span class="xspan">账号 </span><input type="text" name="id"
												value="${member.id }" class="form-control refinput" required
												readonly="readonly" /> <br>
											<span class="xspan">姓名 </span><input type="text" name="name"
												value="${member.name }" class="form-control refinput"
												placeholder="输入姓名" required autofocus /> <br>
											<span class="xspan">性别 </span><select name="sex"
												class="refinput">
												<option value="3" selected="selected">未指定</option>
												<option value="1">男生</option>
												<option value="2">女生</option>
											</select> <br>
											<span class="xspan">生日 </span> <input type="text"
												name="birthday" class="refinput" data-beatpicker="true"
												data-beatpicker-position="['*','*']"
												data-beatpicker-module="today,clear"
												value='<fmt:formatDate pattern="yyyy-MM-dd" value="${member.birthday}" />' />
											<span class="xspan">手机</span><input type="text" name="tel"
												value="${member.tel }" class="form-control refinput"
												placeholder="输入联系方式" required autofocus /> <br>
											<span class="xspan">地址 </span><input type="text"
												name="address" value="${member.address }"
												class="form-control refinput" placeholder="输入收货地址" required
												autofocus /> <br>个性说明<br> &nbsp;&nbsp;
											<textarea name="desc" placeholder="输入简介" required autofocus
												cols="" rows="">${member.desc}</textarea>
											</p>
											<button id="oneBut"
												class="btn btn-large btn-success  btn-block" type="submit">确认修改</button>
											
										</form>
										
									</div>
									<div class="tab-pane ${empty pageFlag ?'active':''} "
										id="panel-791281">
										
										<form class="form-signin"
											action="<%=basePath%>member/editpw/${member.id}"
											method="post">
											<p class="twocenter">
											<input type="hidden" name="id" value="${member.id}" required />
											<span class="xspan">旧密码</span><input type="password"
												name="oldpw" class="form-control refinput"
												placeholder="输入旧密码" required /><br> <span
												class="xspan">新密码</span><input type="password" name="newpw"
												class="form-control refinput" placeholder="输入新密码" required
												autofocus /><br> <span class="xspan">再一次</span><input
												type="password" name="renewpw" class="form-control refinput"
												placeholder="再次输入新密码" required autofocus /><br>
											</p>
											<button id="oneBut"
												class="btn btn-large btn-success  btn-block" type="submit">密码修改</button>
										
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

</html>
